package com.pets.dao;

import com.pets.entity.Animal;
import com.pets.vo.AnimalVO;
import com.pets.vo.KnowledgesByPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnimalMapper {
    int deleteByPrimaryKey(Integer aid);

    int insert(Animal record);

    int insertSelective(Animal record);

    Animal selectByPrimaryKey(Integer aid);

    int updateByPrimaryKeySelective(Animal record);

    int updateByPrimaryKey(Animal record);
    //分页查询
    List<AnimalVO> selectAnimalsByPage(@Param(value="start") int start, @Param(value="pageSize") int pageSize);

    int selectAnimalsCount();

    AnimalVO selectAnimalByAid(Integer aid);

    List<Animal> getUserAnimal(@Param("uId") int uId);
}